package com.arelikebrothers.demo.java8;


import com.arelikebrothers.demo.java8.stream.CpuProvider;

import java.util.stream.Stream;

/**
 * Created by lennon on 29/04/2017.
 */
public class Main {

    public static void main(String[] args) {

        Stream.generate(new CpuProvider()::getCpuUsage)
//                .limit(10)
                .forEach(System.out::println);

    }
}
